package view;


import java.awt.*;

public abstract class Elemento {
	
	public int x;
	public int y;
	public int width;
	public int height;
	
	public Elemento(int x, int y, int width, int height) {
		this.setX(x);
		this.setY(y);
		this.setWidth(width);
		this.setHeight(height);
	}
	
	public abstract void pintar(Graphics g);
	
	public abstract void mover();
	
	public Rectangle crearRectangulo() {
        return new Rectangle(x, y, width, height);
    }
	
	public int getX() {
		return x;
	}
	
	public int getY() {
		return y;
	}
	
	public void setX(int x){
		this.x =x;
	}
	
	public void setY(int y) {
		this.y = y;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}
	
}